public void CampaignControllerConstructorTest()
 {
     var mock = kernel.GetMock<ICampaignRepository>();
     CampaignController target = new CampaignController(mock.Object);
     Assert.IsNotNull(target);
 }
        public void Get_CampaignListDto_Test()
        {
            string curruser = System.Environment.UserDomainName + "\\" + System.Environment.UserName;
            var mock = kernel.GetMock<ICampaignRepository>();
            mock.Setup(m => m.getCampaignsForPlayer(curruser)).Returns(new List<CampaignInfo>()
            {
                new CampaignInfo()
                {
                    campaignId = fixture.Create<string>(),
                    campaignName = fixture.Create<string>(),
                    //ListPlayerInfo = fixture.Create<List<PlayerInfo>>(),
                    SektorField = new SektorInfo[,]
                    {
                        { fixture.Create<SektorInfo>(), fixture.Create<SektorInfo>() },
                        { fixture.Create<SektorInfo>(), fixture.Create<SektorInfo>() }
                    }
                }
            });

            CampaignController target = new CampaignController(mock.Object);
            CampaignListDto actual = target.Get();

            Assert.IsInstanceOfType(actual, typeof (CampaignListDto));
            mock.Verify(c => c.getCampaignsForPlayer(curruser));
        }