public void TestTest() { RaceService service = new RaceService(Guid.Parse("00000000-0000-0000-0000-000000000000")); DnDRaceCreate something = new DnDRaceCreate(); something.WeaponProficiencies = new List <string> { "AHHH" }; //service.GetAllMyRaces(); service.CreateRace(something); }
public void TestAutomaticStartListCreation() { // Setup var skiers = new[] { new Skier(), new Skier(), new Skier() }; var raceDaoMock = new Mock <IRaceDao>(); var runDaoMock = new Mock <IRunDao>(); var daoProvider = DaoProviderHelper.GetPartialDaoProvider( raceDao: raceDaoMock.Object, runDao: runDaoMock.Object ); var raceService = new RaceService(daoProvider); // Execute raceService.CreateRace(new Race(), skiers.ToList()); // Assert runDaoMock.Verify( d => d.InsertMany(It.IsAny <IEnumerable <Run> >()), Times.Once() ); }