public void ShouldAddGetDeleteLike() { //arrange var like = new Like { UserId = Guid.Parse("3c8fddae-8ebc-4cd4-9eb2-30ce678d6c23") /*Guid.NewGuid()*/, PostId = Guid.Parse("82243a65-d1e6-440c-a906-5dffb9cd653c") /*Guid.NewGuid()*/, }; //act var dataLayer = new DataLayer.Sql.DataLayer(_connectionString); var addLike = dataLayer.AddLike(like); var dataLayer1 = new DataLayer.Sql.DataLayer(_connectionString); var getLike = dataLayer1.GetLike(addLike.LikeId); var dataLayer2 = new DataLayer.Sql.DataLayer(_connectionString); int isDeleted = dataLayer2.DeleteLike(getLike.LikeId); //asserts Assert.AreEqual(addLike.LikeId, getLike.LikeId); Assert.AreEqual(addLike.UserId, getLike.UserId); Assert.AreEqual(addLike.PostId, getLike.PostId); Assert.IsNotNull(isDeleted); }