Commits

Anonymous committed 4616266

adding user logic class and unit tests

Comments (0)

Files changed (4)

development/src/Business/Business.csproj

     <Compile Include="Facade.cs" />
     <Compile Include="PostLogic.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="UserLogic.cs" />
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\CrossCutting\CrossCutting.csproj">

development/src/Business/UserLogic.cs

+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace qandaNET.BLL
+{
+    public class UserLogic
+    {
+        private readonly bool _isMock;
+
+        public UserLogic(bool isMock)
+        {
+            _isMock = isMock;
+        }
+
+        #region Public Methods
+
+
+
+        #endregion //Public Methods
+    }
+}

development/src/Tests/Tests.csproj

   <ItemGroup>
     <Compile Include="PostLogicTest.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="UserLogicTest.cs" />
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\CrossCutting\CrossCutting.csproj">

development/src/Tests/UserLogicTest.cs

+using qandaNET.BLL;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+
+namespace Tests
+{
+    
+    
+    /// <summary>
+    ///This is a test class for UserLogicTest and is intended
+    ///to contain all UserLogicTest Unit Tests
+    ///</summary>
+    [TestClass()]
+    public class UserLogicTest
+    {
+
+
+        private TestContext testContextInstance;
+
+        /// <summary>
+        ///Gets or sets the test context which provides
+        ///information about and functionality for the current test run.
+        ///</summary>
+        public TestContext TestContext
+        {
+            get
+            {
+                return testContextInstance;
+            }
+            set
+            {
+                testContextInstance = value;
+            }
+        }
+
+        #region Additional test attributes
+        // 
+        //You can use the following additional attributes as you write your tests:
+        //
+        //Use ClassInitialize to run code before running the first test in the class
+        //[ClassInitialize()]
+        //public static void MyClassInitialize(TestContext testContext)
+        //{
+        //}
+        //
+        //Use ClassCleanup to run code after all tests in a class have run
+        //[ClassCleanup()]
+        //public static void MyClassCleanup()
+        //{
+        //}
+        //
+        //Use TestInitialize to run code before running each test
+        //[TestInitialize()]
+        //public void MyTestInitialize()
+        //{
+        //}
+        //
+        //Use TestCleanup to run code after each test has run
+        //[TestCleanup()]
+        //public void MyTestCleanup()
+        //{
+        //}
+        //
+        #endregion
+
+
+        /// <summary>
+        /// are we able to get the user profile from the identity?
+        /// </summary>
+        [TestMethod()]
+        public void CanGetProfileFromIdentity()
+        {
+            Assert.Inconclusive();
+        }
+
+        /// <summary>
+        /// are we able to create a new user profile?
+        /// </summary>
+        [TestMethod()]
+        public void CanCreateNewProfile()
+        {
+            Assert.Inconclusive();
+        }
+
+        /// <summary>
+        /// are we able to associate an identity with an already existing profile?
+        /// </summary>
+        [TestMethod()]
+        public void CanAddIdentityToExistingProfile()
+        {
+            Assert.Inconclusive();
+        }
+    }
+}