public async Task TestInsertElection() { Guid BallotId = Guid.NewGuid(); List <Vote> votes = new List <Vote>() { new Vote() { ElectionId = DefaultElectionId, BallotId = BallotId, CategoryId = PresCategoryId, CategoryTypeId = 2, SelectionId = TrumpTicketId, VoteStatus = 0, ApprovalDate = DateTime.Now } }; UOW.BeginTransaction(); List <Vote> results = await voteRepository.InsertElection(UOW, votes); Assert.IsNotNull(results, "Expected votes to be inserted"); UOW.CloseTransaction(); }